package org.springframework.beanFactory.config;

import org.springframework.beanFactory.entity.Bean1;
import org.springframework.beanFactory.entity.Bean2;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Classname BeanFactoryConfig
 * @Description 学习BeanFactory实现类创建的配置类
 * @Date 2023/12/20 22:34
 * @Created by 24241
 */

@ComponentScan("org.springframework.beanFactory")
public class BeanFactoryConfig {
	@Bean
	public Bean1 bean1(){
		return new Bean1();
	}
	@Bean
	public Bean2 bean2(){
		return new Bean2();
	}
}
